
#ifndef __LIB_H__
#define __LIB_H__

unsigned char GetTKchannelNo(void);
//unsigned char GetTKREFNo(void);
int GetNoiseLimit(void);
unsigned int GetTKTMRL(void);
unsigned int GetTKTMRH(void);
unsigned int GetTHTKTMR(bit bJMP);	 	/*20211024*/
//unsigned char GetDebounceCounter(void);
void Pro_InitFREQ(void);
void UpdateBaseline(unsigned char ucUpdatePeriod );
void ProDebounceCS(void);
void Pro_NoiseRange(unsigned char ucAntiNoiseCounter);
void baselinestatusreset(void);
//void GetMultiKeyMASK(void);
void ProTKoutput(unsigned char ucTKREF);
void MoveINTRaw2TKRaw(void);
void GetJMPnPn(void);
unsigned char Get1CNT(unsigned int iTemp);
void CheckReinitial(int iRevNoiseTH);
int getRawFreq(unsigned char tkch,unsigned char freq,unsigned char ucbufTKCON2);
void PKP_UpdateBaseline(void);
void ReInitFreq(void);
//unsigned char GetDebounceCounter1(void);
//unsigned char GetDebounceCounter2(void);
void delayxnop(unsigned char ucXnop);
int TKBASELminusRAW(unsigned char ucSp);
void CheckCSnMultiKey(void);
#endif

